package java基础.struct;

/**
 * @author IT_Jay
 * @date 2021/12/12 19:22
 */

public class Demo11 {
    public static void main(String[] args) {
        int a=0;
        while (a<0){
            System.out.println(a);  //不满足条件，为进入该循环
            a++;
        }
        System.out.println("===========================================================");
        do {
            System.out.println(a);      //先执行，a=0
            a++;
        }while (a<0);                   //不满足，跳出
        System.out.println(a);          //do语句中进行了一次自加，a=1
    }
}
